<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>广讯科技</title>
    <meta content="telephone=no" name="format-detection" />
    <!-- 启用 WebApp 全屏模式 -->
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <!-- bootstrap.css -->
    <link rel="stylesheet" href="./assets/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="./assets/plugins/popup/sweetalert.css">
    <link rel="stylesheet" href="./assets/css/reset.css">
    <link rel="stylesheet" href="./assets/css/iconfont.css">
    <link rel="stylesheet" href="./assets/css/border.css">
    <link rel="stylesheet" href="./assets/css/common.css">
    <script src="./assets/js/flexible.js"></script>
</head>

<body>
    <!-- 模态框（Modal） -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                    </button>
                    <h4 class="modal-title" id="myModalLabel"></h4>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                            <label class="control-label"></label> 
                            <input type="text" class="form-control setInput" data-container="body" data-toggle="popover" data-placement="bottom" data-trigger="focus">
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" onclick="query(this)">确定</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>
    <!-- 功放控制模式 -->
    <div class="modal fade" id="AmpControlModal" tabindex="-1" role="dialog" aria-labelledby="AmpControlModeLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                    </button>
                    <h4 class="modal-title" id="AmpControlModeLabel">功放控制模式</h4>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                            <label>
                                <input type="radio" name="AmpControlMode" value="0">设置模式
                            </label>
                            <label>
                                <input type="radio" name="AmpControlMode" value="1">跟踪模式
                            </label>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" onclick="AmpControlModeSetCtrl(this)">确定</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>
    <!-- 是否动态获取 -->
    <div class="modal fade" id="DHCPModal" tabindex="-1" role="dialog" aria-labelledby="DHCPModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                    </button>
                    <h4 class="modal-title" id="DHCPModalLabel">是否动态获取</h4>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                            <label>
                                <input type="radio" name="IsDHCPOption" value="0">静态设置
                            </label>
                            <label>
                                <input type="radio" name="IsDHCPOption" value="1">动态设置
                            </label>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" onclick="setIsDHCP(this)">确定</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>
    <!-- /.modal -->
    <div class="mask"></div>
    <div class="main">
        <!-- slibar -->
        <nav class="slidebar-nav">
            <div class="nav-logo">
                <div class="logo-wrapper">
                    <img src="assets/images/logo1.png">
                </div>
                <p class="user-name user-login" id="userName"></p>
            </div>
            <div class="slidebar-content">
                <ul id="myTab" class="nav nav-tabs">
                    <li class="active">
                        <a href="#systemInfo" data-toggle="tab"><i class="iconfont icon-item">&#xe601;</i><span>系统信息</span></a>
                    </li>
                    <li>
                        <a href="#systemStatus" data-toggle="tab"><i class="iconfont icon-item">&#xe63e;</i><span>本机状态</span></a>
                    </li>
                    <li>
                        <a href="#zfzStatus" data-toggle="tab"><i class="iconfont icon-item">&#xe688;</i><span>直放站状态</span></a>
                    </li>
                    <li>
                        <a href="#network" data-toggle="tab"><i class="iconfont icon-item">&#xe609;</i><span>网络配置</span></a>
                    </li>
                    <!-- <li>
                        <a href="RF" data-toggle="tab"><i class="iconfont icon-item">&#xe6f4;</i><span>射频监测</span></a>
                    </li>
                    <li>
                        <a href="#audio" data-toggle="tab"><i class="iconfont icon-item">&#xe612;</i><span>音频监听</span></a>
                    </li> -->
                    <!-- <li>
                        <a href="#log" data-toggle="tab"><i class="iconfont icon-item">&#xe61c;</i><span>日志查看</span></a>
                    </li> -->
                    <li>
                        <a href="#update" data-toggle="tab"><i class="iconfont icon-item">&#xe78a;</i><span>升级更新</span></a>
                    </li>
                    <!-- <li>
                        <a href="#debug" data-toggle="tab"><i class="iconfont icon-item">&#xe667;</i><span>调试信息</span></a>
                    </li> -->
                </ul>
            </div>
            <div class="nav-footer" id="logout">
                <span><i class="iconfont logout">&#xe60d;</i>退出</span>
            </div>
        </nav>
        <!-- header -->
        <header class="detail-header">
            <h1>
                <span class="iconfont back-arrow">&#xe656;</span>
                <span class="nav-title"></span>
                <div class="logo-content">
                    <img src="./assets/images/logo1.png" class="toggle-logo">
                </div>
            </h1>
        </header>
        <div id="myTabContent" class="tab-content monitor-container ">
            <div class="tab-pane fade in active" id="systemInfo">
                <ul>
                    <li>
                        <span>硬件版本:</span>
                        <span id="PCBVersion"></span>
                    </li>
                    <li>
                        <span>BOOT版本:</span>
                        <span id="BootVersion"></span>
                    </li>
                    <li>
                        <span>BOOT日期:</span>
                        <span id="BootVerDate"></span>
                    </li>
                    <li>
                        <span>BOOT时间:</span>
                        <span id="BootVerTime"></span>
                    </li>
                    <li>
                        <span>APP版本:</span>
                        <span id="AppVersion"></span>
                    </li>
                    <li>
                        <span>APP日期:</span>
                        <span id="AppVerDate"></span>
                    </li>
                    <li>
                        <span>APP时间:</span>
                        <span id="AppVerTime"></span>
                    </li>
                    <li>
                        <span>物理标识:</span>
                        <span id="CARDTag" class="tag-style"></span>
                    </li>
                    <li>
                        <span>设备序列号:</span>
                        <span id="DevSnNum"></span>
                    </li>
                    <li>
                        <span>MCU温度:</span>
                        <span id="MCUTemp"></span>
                    </li>
                    <li>
                        <span>FLASH状态:</span>
                        <span id="FLASHSta"></span>
                    </li>
                    <li>
                        <span>ARM物理标识:</span>
                        <span id="ARMTag" class="tag-style"></span>
                    </li>
                    <li>
                        <span>ARM设备版本号:</span>
                        <span id="ARMDevVersion"></span>
                    </li>
                    <li>
                        <span>软件复位:</span>
                        <p class="set-content">
                            <button class="set-btn" id="setReset">复位</button>
                        </p>
                    </li>
                    <li>
                        <span>写入FLASH:</span>
                        <p class="set-content">
                            <button class="set-btn" id="setFlashWr">保存</button>
                        </p>
                    </li>
                </ul>
            </div>
            <div class="tab-pane fade" id="systemStatus">
                <ul>
                    <li>
                        <span>服务器地址:</span>
                        <p class="set-content">
                            <span id="ServerIP"></span>
                            <button class="set-btn" id="setServerIp" data-key="ServerIP" data-toggle="modal" data-target="#myModal" data-whatever="服务器地址">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>服务器端口:</span>
                        <p class="set-content">
                            <span id="ServerPort"></span>
                            <button class="set-btn" id="setServerPort" data-key="ServerPort" data-toggle="modal" data-target="#myModal" data-whatever="服务器端口">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>上行心跳间隔(s):</span>
                        <p class="set-content">
                            <span id="HeartTimeUP"></span>
                            <button class="set-btn" id="setHeartTimeUp" data-key="HeartTimeUP" data-toggle="modal" data-target="#myModal" data-whatever="上行心跳间隔">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>上行数据间隔(s):</span>
                        <p class="set-content">
                            <span id="UPDataTTI"></span>
                            <button class="set-btn" id="setUpDataTTI" data-key="UPDataTTI" data-toggle="modal" data-target="#myModal" data-whatever="上行数据间隔">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>下行心跳间隔(s):</span>
                        <p class="set-content">
                            <span id="HeartTimeDN"></span>
                            <button class="set-btn" id="setHeartTimeDN" data-key="HeartTimeDN" data-toggle="modal" data-target="#myModal" data-whatever="下行心跳间隔">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>FM接收频率:</span>
                        <p class="set-content">
                            <span id="FMFreq"></span>
                            <button class="set-btn" id="setFMFreq" data-key="FMFreq" data-toggle="modal" data-target="#myModal" data-whatever="FM接收频率">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>温湿度模块状态:</span>
                        <span id="THSta"></span>
                    </li>
                    <li>
                        <span>温度:</span>
                        <span id="Temp"></span>
                    </li>
                    <li>
                        <span>湿度:</span>
                        <span id="Humi"></span>
                    </li>
                    <li>
                        <span>FM模块状态:</span>
                        <span id="FMSta"></span>
                    </li>
                    <li>
                        <span>FM信号强度:</span>
                        <span id="FMRSSI"></span>
                    </li>
                    <li>
                        <span>FM信噪比:</span>
                        <span id="FMSNR"></span>
                    </li>
                    <li>
                        <span>主路供电电压:</span>
                        <span id="MasterVol"></span>
                    </li>
                    <li>
                        <span>主路供电电流:</span>
                        <span id="MasterCur"></span>
                    </li>
                    <li>
                        <span>备路供电电压:</span>
                        <span id="BackupVol"></span>
                    </li>
                     <li>
                        <span>备路供电电流:</span>
                        <span id="BackupCur"></span>
                    </li>
                    <li>
                        <span>ARM-MCU通信状态:</span>
                        <span id="ComSta" class="special"></span>
                    </li>
                    <li>
                        <span>通信发计数:</span>
                        <span id="TXCNT" class="special"></span>
                    </li>
                    <li>
                        <span>通信收计数:</span>
                        <span id="RXCNT" class="special"></span>
                    </li>
                    <li>
                        <span>数据采集时间:</span>
                        <span id="DataTime" class="special"></span>
                    </li>
                </ul>
            </div>
            <div class="tab-pane fade" id="zfzStatus">
                <ul>
                    <li>
                        <span>整机射频开关:</span>
                        <p class="set-content">
                            <span id="RFSwitch"></span>
                            <button class="set-btn" id="setSwitch">设置</button>
                        </p>
                    </li> 
                    <li>
                        <span>输出功率设置:</span>
                        <p class="set-content">
                            <span id="AmpTrackPower"></span>
                            <button class="set-btn" id="setAmpTrackPower" data-key="AmpTrackPower" data-toggle="modal" data-target="#myModal" data-whatever="输出功率设置">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>光模块衰减设置值:</span>
                        <p class="set-content">
                            <span id="LightRFAttrSet"></span>
                            <button class="set-btn" id="setLightRFAttrSet" data-key="LightRFAttrSet" data-toggle="modal" data-target="#myModal" data-whatever="光模块衰减设置值">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>功放控制模式:</span>
                        <p class="set-content">
                            <span id="AmpControlMode"></span>
                            <button class="set-btn" id="setAmpControlMode" data-key="AmpControlMode" data-toggle="modal" data-target="#AmpControlModal">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>DA设置值:</span>
                        <p class="set-content">
                            <span id="DASet"></span>
                            <button class="set-btn" id="setDASet" data-key="DASet" data-toggle="modal" data-target="#myModal" data-whatever="DA设置值">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>驻波比保护门限:</span>
                        <p class="set-content">
                            <span id="AmpVSWRThreshold"></span>
                            <button class="set-btn" id="setAmpVSWRThreshold" data-key="AmpVSWRThreshold" data-toggle="modal" data-target="#myModal" data-whatever="驻波比保护门限">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>功率保护门限:</span>
                        <p class="set-content">
                            <span id="AmpPowerThreshold"></span>
                            <button class="set-btn" id="setAmpPowerThreshold" data-key="AmpPowerThreshold" data-toggle="modal" data-target="#myModal" data-whatever="功率保护门限">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>DA保护门限:</span>
                        <p class="set-content">
                            <span id="AmpDACThreshold"></span>
                            <button class="set-btn" id="setAmpDACThreshold" data-key="AmpDACThreshold" data-toggle="modal" data-target="#myModal" data-whatever="DA保护门限">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>功放温度保护门限:</span>
                        <p class="set-content">
                            <span id="AmpTMPThreshold"></span>
                            <button class="set-btn" id="setAmpTMPThreshold" data-key="AmpTMPThreshold" data-toggle="modal" data-target="#myModal" data-whatever="功放温度保护门限">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>光接收功率:</span>
                        <span id="LightRecvPower"></span>
                    </li>
                    <li>
                        <span>光输入告警:</span>
                        <span id="LightInAlarm"></span>
                    </li>
                    <li>
                        <span>光模块状态:</span>
                        <span id="LightCommSta"></span>
                    </li>
                    <li>
                        <span>光模块射频衰减:</span>
                        <span id="LightRFAttr"></span>
                    </li>
                    <li>
                        <span>功放输出DA值:</span>
                        <span id="AmpOutControlDAC"></span>
                    </li>
                     <li>
                        <span>功放反射功率:</span>
                        <span id="AmpRefPower"></span>
                    </li>
                    <li>
                        <span>功放输出功率:</span>
                        <span id="AmpFwdPower"></span>
                    </li>
                    <li>
                        <span>功放电压:</span>
                        <span id="AmpOutputVoltage"></span>
                    </li>
                    <li>
                        <span>功放电流:</span>
                        <span id="AmpOutputCurrent"></span>
                    </li>
                    <li>
                        <span>功放温度:</span>
                        <span id="AmpTemperature"></span>
                    </li>
                    <li>
                        <span>功放当前驻波比:</span>
                        <span id="AmpVSWR"></span>
                    </li>
                    <li>
                        <span>环路状态:</span>
                        <span id="LoopStatus"></span>
                    </li>
                    <li>
                        <span>驻波比告警:</span>
                        <span id="AmpVSWRWarning"></span>
                    </li>
                    <li>
                        <span>保护驻波比:</span>
                        <span id="AmpLastProVSWR"></span>
                    </li>
                    <li>
                        <span>驻波比保护计数:</span>
                        <span id="AmpCVSWRPro"></span>
                    </li>
                    <li>
                        <span>驻波比保护恢复计数:</span>
                        <span id="AmpCVSWRProRec"></span>
                    </li>
                    <li>
                        <span>功率保护告警:</span>
                        <span id="AmpPowerWarning"></span>
                    </li>
                    <li>
                        <span>功率保护计数:</span>
                        <span id="AmpCPowerPro"></span>
                    </li>
                    <li>
                        <span>功率保护恢复计数:</span>
                        <span id="AmpCPowerProRec"></span>
                    </li>
                    <li>
                        <span>DA保护告警:</span>
                        <span id="AmpDACWarning"></span>
                    </li>
                    <li>
                        <span>DA保护计数:</span>
                        <span id="AmpCDACPro"></span>
                    </li>
                    <li>
                        <span>DA保护恢复计数:</span>
                        <span id="AmpCDACProRec"></span>
                    </li>
                    <li>
                        <span>功放温度告警:</span>
                        <span id="AmpTMPWarning"></span>
                    </li>
                    <li>
                        <span>功放温度保护计数:</span>
                        <span id="AmpCTMPPro"></span>
                    </li>
                    <li>
                        <span>保护恢复时间计时:</span>
                        <span id="AmpCRecTime"></span>
                    </li>
                </ul>
            </div>
            <div class="tab-pane fade" id="network">
                <ul>
                    <li>
                        <span>是否动态获取:</span>
                        <p class="set-content">
                            <span id="IsDHCP"></span>
                            <button class="set-btn" id="setDHCP" data-toggle="modal" data-target="#DHCPModal" data-whatever="是否动态获取">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>IP地址:</span>
                        <p class="set-content">
                            <span id="IPAddress"></span>
                            <button class="set-btn" id="setIPAddress" data-key="IPAddress" data-toggle="modal" data-target="#myModal" data-whatever="IP地址">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>子网掩码:</span>
                        <p class="set-content">
                            <span id="Netmask"></span>
                            <button class="set-btn" id="setNetmask" data-key="Netmask" data-toggle="modal" data-target="#myModal" data-whatever="子网掩码">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>默认网关:</span>
                        <p class="set-content">
                            <span id="Gateway"></span>
                            <button class="set-btn" id="setGateway" data-key="Gateway" data-toggle="modal" data-target="#myModal" data-whatever="默认网关">设置</button>
                        </p>
                    </li>
                    <li>
                        <span>重启生效:</span>
                        <p class="set-content">
                            <button class="set-btn" id="setSysReset">重启</button>
                        </p>
                    </li>
                    <li>
                        <span>MAC地址:</span>
                        <span id="MACAddress"></span>
                    </li>
                </ul>
            </div>
            <div class="tab-pane fade" id="update">
                <ul>
                    <li>
                        <span>MCU升级:</span>
                        <p class="set-content">
                            <button class="set-btn" id="setUpgrade">升级</button>
                        </p>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</body>
<script src="./assets/plugins/jquery-1.11.1.js"></script>
<script src="./assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="./assets/plugins/popup/sweetalert.min.js"></script>
<script src="./assets/plugins/fastclick.js"></script>
<script src="./assets/js/common.js"></script>
<script src="./assets/js/tool.js"></script>
<script src="./assets/js/monitor.js"></script>

</html>